Class DiplomacyProposal

java.lang.Object
ddejonge.bandana.negoProtocol.DiplomacyProposal
All Implemented Interfaces:
es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Proposal, java.io.Serializable

public class DiplomacyProposal
extends java.lang.Object
implements es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Proposal
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    DiplomacyProposal​(java.lang.String id, BasicDeal deal)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object getContext()
    Current implementation just returns null.
    java.lang.String getId()  
    java.util.List<java.lang.String> getParticipants()
    Returns the names of all powers that are involved in the proposed Deal.
    Deal getProposedDeal()
    Returns the Deal object that is proposed in this proposal.
    Deal getProposedDeal​(es.csic.iiia.fabregues.dip.board.Game game)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getId

      public java.lang.String getId()
      Specified by:
      getId in interface es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Proposal
    • getParticipants

      public java.util.List<java.lang.String> getParticipants()
      Returns the names of all powers that are involved in the proposed Deal.
      Specified by:
      getParticipants in interface es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Proposal
    • getProposedDeal

      public Deal getProposedDeal()
      Returns the Deal object that is proposed in this proposal.
      Specified by:
      getProposedDeal in interface es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Proposal
    • getProposedDeal

      public Deal getProposedDeal​(es.csic.iiia.fabregues.dip.board.Game game)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getContext

      public java.lang.Object getContext()
      Current implementation just returns null. In future implementations we might return a year and a phase, to indicate that the Proposal is only valid if accepted during that specific turn.
      Specified by:
      getContext in interface es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Proposal